//
//  TimeSpaceHistoryView.h
//  Portable Traffic Signal Assistor
//
//  Created by Ding on 10/15/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DynamicSignalLabel.h"
#import "InterfacePoint.h"
#import "Link.h"
#import "XMLParser.h"
#import "Intersection.h"
#import "GeometryCalculation.h"
#import "InterfaceLine.h"
#import "GPSEntity.h"
#import "InterfaceSquareArea.h"

@interface TimeSpaceHistoryView : UIView
{
    CGContextRef storedContext;
}
@property (nonatomic,retain) NSMutableArray * dynamicSignalLabelList;

@property (nonatomic,retain) NSMutableArray * GPSLocationList;

@property (nonatomic) int cycleTimer;
@property (nonatomic) int direction;
@property (nonatomic) int secondsBetweenDates;
@property (nonatomic,retain) NSMutableArray * bandLineBeginList;
@property (nonatomic,retain) NSMutableArray * squareAreaList;
@property (nonatomic,retain) Agency * agency;
@property (nonatomic,retain) TimingPattern * timingPattern;

//@property (nonatomic,retain) NSMutableArray * bandLineEndList;
//@property (nonatomic,retain) NSMutableArray * bandLineColorList;

- (id)initWithFrame:(CGRect)frame dynamicSignalLabelList:(NSMutableArray *)dynamicSignalLabelList direction:(int)direction agency:(Agency *)agency timingPattern:(TimingPattern *)timingPattern;

- (id)initWithFrame:(CGRect)frame dynamicSignalLabelList:(NSMutableArray *)dynamicSignalLabelList GPSLocationList:(NSMutableArray *) GPSLocationList cycleTimer:(int) cycleTimer direction:(int)direction agency:(Agency *)agency timingPattern:(TimingPattern *)timingPattern;
- (void) updateGPSDraw:(CGContextRef) context offset:(int)offset;
- (void) customizedReDraw;

@end
